package com.situ.mall.service.impl;

import com.situ.mall.mapper.RoleMapper;
import com.situ.mall.pojo.Role;
import com.situ.mall.service.IRoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class RoleServiceImpl implements IRoleService {
    @Autowired
    private RoleMapper roleMapper;

    @Override
    public List<Role> selectRole() {
        return roleMapper.selectAll();
    }
}
